package com.team11.server.service.impl;
import com.team11.server.mapper.MenuManageMapper;
import com.team11.server.pojo.dto.RespBean;
import com.team11.server.service.MenuManageService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@Service
public class MenuManageServiceImpl implements MenuManageService {
    @Resource
    private MenuManageMapper menuManageMapper;

    @Override
    public RespBean selAllMenu() {
        return RespBean.success("查询成功",menuManageMapper.SelAllMenu());
    }

    @Override
    public RespBean selMenuById(Integer id) {
        return RespBean.success("查询成功",menuManageMapper.SelMenuById(id));
    }
}
